From: Brian Wolff Date: Tue, 20 Dec 2011 07:55:44 +0000 (+0000) Subject: Don't re-use allinnamespace as the header for special:prefixindex. instead introduce... X-Git-Tag: 1.31.0-rc.0~25879 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=4fbaeb946c1a20a96543d9030556d018339f8bc2;p=lhc%2Fweb%2Fwiklou.git Don't re-use allinnamespace as the header for special:prefixindex. instead introduce new message prefixindex-namespace Hopefully directly editing MessagesQqq.php like I did is ok... I can never remember if i'm supposed to do that, or if it will just be overridden on next translatewiki export. --- diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index d02c67b6b7..55cc0c3a82 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -187,6 +187,8 @@ production. with .xxx causes Internal error * Warning about undefined index in certain situations when $wgLogRestrictions causes the first log type requested to be removed but not the others +* Use separate message ('prefixindex-namespace') for title of + Special:PrefixIndex rather then re-using Special:AllPages's allinnamespace === API changes in 1.19 === * (bug 19838) siprop=interwikimap can now use the interwiki cache. diff --git a/includes/specials/SpecialPrefixindex.php b/includes/specials/SpecialPrefixindex.php index 325236585f..495f15f77e 100644 --- a/includes/specials/SpecialPrefixindex.php +++ b/includes/specials/SpecialPrefixindex.php @@ -56,7 +56,7 @@ class SpecialPrefixindex extends SpecialAllpages { $namespaces = $wgContLang->getNamespaces(); $out->setPageTitle( ( $namespace > 0 && in_array( $namespace, array_keys( $namespaces ) ) ) - ? $this->msg( 'allinnamespace', str_replace( '_', ' ', $namespaces[$namespace] ) ) + ? $this->msg( 'prefixindex-namespace', str_replace( '_', ' ', $namespaces[$namespace] ) ) : $this->msg( 'prefixindex' ) ); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 949d6a9fe3..db1f3939a0 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2545,6 +2545,7 @@ It now redirects to [[$2]].', 'mostrevisions' => 'Pages with the most revisions', 'mostrevisions-summary' => '', # do not translate or duplicate this message to other languages 'prefixindex' => 'All pages with prefix', +'prefixindex-namespace' => 'All pages with prefix ($1 namespace)', 'prefixindex-summary' => '', # do not translate or duplicate this message to other languages 'shortpages' => 'Short pages', 'shortpages-summary' => '', # do not translate or duplicate this message to other languages diff --git a/languages/messages/MessagesQqq.php b/languages/messages/MessagesQqq.php index f6b1380ea8..e65dd0b876 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -2177,6 +2177,7 @@ $1 is a page title", 'mostimages' => 'Name of special page displayed in [[Special:SpecialPages]]', 'mostrevisions' => 'Name of special page displayed in [[Special:SpecialPages]]', 'prefixindex' => 'The page title of [[Special:PrefixIndex]]. When the user limits the list to a certain namespace, {{msg-mw|allinnamespace}} is used instead.', +'prefixindex-namespace' => 'The page title of [[Special:PrefixIndex]] limited to a specific namespace. Similar to {{msg-mw|allinnamespace}}. $1 is the name of the namespace', 'shortpages' => 'Name of special page displayed in [[Special:SpecialPages]]', 'longpages' => 'Name of special page displayed in [[Special:SpecialPages]]', 'deadendpages' => 'Name of special page displayed in [[Special:SpecialPages]]', @@ -2250,7 +2251,7 @@ The title is {{msg-mw|nopagetitle}}.', 'allarticles' => 'The page title of [[Special:Allpages]]. When the user limit the list to a certain namespace, {{msg-mw|allinnamespace}} is used instead. {{Identical|All pages}}', -'allinnamespace' => 'The page title of [[Special:Allpages]] and [[Special:PrefixIndex]], when the user limits the display to a certain namespace. When not limited, {{msg-mw|allarticles}} and {{msg-mw|prefixindex}} is used respectively. +'allinnamespace' => 'The page title of [[Special:Allpages]], when the user limits the display to a certain namespace. When not limited, {{msg-mw|allarticles}} is used respectively. {{Identical|All pages}}', 'allnotinnamespace' => 'Presumably intended to be used as a page title of [[Special:Allpages]] and probably also in [[Special:PrefixIndex]] when the user limit the display to other than a certain namespace. diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index ac388e8bb4..a88a19d41e 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -1645,6 +1645,7 @@ $wgMessageStructure = array( 'mostrevisions', 'mostrevisions-summary', 'prefixindex', + 'prefixindex-namespace', 'prefixindex-summary', 'shortpages', 'shortpages-summary',